package org.jeecg.lawcase.data.reader.impl;

import org.jeecg.lawcase.data.reader.DataImportApadter;
import org.jeecg.lawcase.data.reader.DataImportManager;
import org.jeecg.lawcase.data.reader.DataTemplate;
import org.springframework.stereotype.Component;

import java.io.InputStream;

@Component
public class ImageDataImportImpl implements DataImportApadter {

    public ImageDataImportImpl() {
        DataImportManager.registerService(this.getFileType(), this);
    }

    @Override
    public String getFileType() {
        return "png,jpg,bmp,tif,svg";
    }

    @Override
    public DataTemplate importData(String fileName, InputStream inputStream) {
        DataTemplate dataTemplate = new DataTemplate();
        return dataTemplate;
    }
}
